package com.itheima.service;

import com.itheima.dto.AddressDto;
import com.itheima.pojo.Address;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AddressService {
    Boolean defaultAddress(String id);

    Address getDefaultAddress();

    List<Address> getList();

    Address getAddressById(String id);

    boolean remove(String ids);

    boolean add(AddressDto addressDto);

    boolean update(AddressDto addressDto);
}
